# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=vvmplayer
pkgver=2.4
pkgrel=0
pkgdesc="front end GUI to display, play, and delete visual voicemails"
url="https://gitlab.com/kop316/vvmplayer"
arch="all"
license="GPL-3.0-only"
makedepends="
	callaudiod-dev
	desktop-file-utils
	evolution-data-server-dev
	glib-dev
	gst-plugins-base-dev
	gstreamer-dev
	gtk4.0-dev
	libadwaita-dev
	meson
	"
checkdepends="xvfb-run"
depends="gst-plugins-ugly gst-plugins-good gst-libav vvmd"
source="https://gitlab.com/kop316/vvmplayer/-/archive/$pkgver/vvmplayer-$pkgver.tar.gz"

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

check() {
	xvfb-run -a meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
2e17f9a5d82ad060bc00af444962835353ba283cb329edf3258fad0901641ed5bfa4376b63dfc54a9e4f8ffb5b1860066eafd4a40a92ef89f9cb2c21bd24d9c7  vvmplayer-2.4.tar.gz
"
